package com.customer.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 客户表
 * </p>
 *
 * @author rick
 * @since 2022-12-13 11:23:15
 */
@Getter
@Setter
@TableName("wk_crm_customer")
@ApiModel(value = "CrmCustomer对象", description = "客户表")
public class CrmCustomer implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "customer_id", type = IdType.AUTO)
    private Integer customerId;

    @ApiModelProperty("客户名称")
    @TableField("customer_name")
    private String customerName;

    @ApiModelProperty("跟进状态 0未跟进1已跟进")
    @TableField("followup")
    private Integer followup;

    @ApiModelProperty("1锁定")
    @TableField("is_lock")
    private Integer isLock;

    @ApiModelProperty("下次联系时间")
    @TableField("next_time")
    private LocalDateTime nextTime;

    @ApiModelProperty("成交状态 0 未成交 1 已成交")
    @TableField("deal_status")
    private Integer dealStatus;

    @ApiModelProperty("成交时间")
    @TableField("deal_time")
    private LocalDateTime dealTime;

    @ApiModelProperty("首要联系人ID")
    @TableField("contacts_id")
    private Integer contactsId;

    @ApiModelProperty("手机")
    @TableField("mobile")
    private String mobile;

    @ApiModelProperty("电话")
    @TableField("telephone")
    private String telephone;

    @ApiModelProperty("网址")
    @TableField("website")
    private String website;

    @ApiModelProperty("邮箱")
    @TableField("email")
    private String email;

    @ApiModelProperty("备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty("创建人ID")
    @TableField("create_user_id")
    private Long createUserId;

    @ApiModelProperty("负责人ID")
    @TableField("owner_user_id")
    private Long ownerUserId;

    @ApiModelProperty("只读权限")
    @TableField("ro_user_id")
    private String roUserId;

    @ApiModelProperty("读写权限")
    @TableField("rw_user_id")
    private String rwUserId;

    @ApiModelProperty("省市区")
    @TableField("address")
    private String address;

    @ApiModelProperty("定位信息")
    @TableField("location")
    private String location;

    @ApiModelProperty("详细地址")
    @TableField("detail_address")
    private String detailAddress;

    @ApiModelProperty("地理位置经度")
    @TableField("lng")
    private String lng;

    @ApiModelProperty("地理位置维度")
    @TableField("lat")
    private String lat;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty("批次 比如附件批次")
    @TableField("batch_id")
    private String batchId;

    @ApiModelProperty("客户状态 1 正常 2锁定 3删除")
    @TableField("status")
    private Integer status;

    @ApiModelProperty("最后跟进时间")
    @TableField("last_time")
    private LocalDateTime lastTime;

    @ApiModelProperty("放入公海时间")
    @TableField("pool_time")
    private LocalDateTime poolTime;

    @ApiModelProperty("1 分配 2 领取")
    @TableField("is_receive")
    private Integer isReceive;

    @ApiModelProperty("最后一条跟进记录")
    @TableField("last_content")
    private String lastContent;

    @ApiModelProperty("接收到客户时间")
    @TableField("receive_time")
    private LocalDateTime receiveTime;

    @ApiModelProperty("进入公海前负责人id")
    @TableField("pre_owner_user_id")
    private Long preOwnerUserId;


}
